package com.nuedu.corejava.ch3.homework;
import java.util.Scanner;
public class SelectHomeWork8 {
	public static void main(String[] args) {		
		Scanner sc = new Scanner(System.in);
		System.out.println("请输入一个四位数");
			int shuru = sc.nextInt();
			String hebing ="";
			
			String fanzhuan = String.valueOf(shuru);
			for(int i=fanzhuan.length()-1; i>=0; i--) {
				hebing = hebing + fanzhuan.charAt(i);
			}
			int newShu = Integer.parseInt(hebing);
			System.out.print(newShu);
		}

	

}
